//
//  TempCity.m
//  05-HomeWork
//
//  Created by dllo on 16/7/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TempCity.h"

@implementation TempCity
- (instancetype)initWithName:(NSString *)name number:(NSString *)number {
    self = [super init];
    if (self) {
        _name = name;
        _number = number;
    }
    return self;
}
+ (instancetype)tempCityWithName:(NSString *)name number:(NSString *)number {
    return [[self alloc] initWithName:name number:number];
}
- (NSString *)description {
    return [NSString stringWithFormat:@"%@ %@", self.name, self.number];
}
@end
